<?php
    session_start();
	if (isset($_SESSION['username']))
	{
		$login = true;
	}
	else{
		$login = false;
		//header("Location: ".$CFG->url."home.php");
	}
	$loguname = $_SESSION['username'];
	$username = $_GET["un"];
	if ($username==NULL&&$login){
		$username=$loguname;
	}
	
	$path = 'users/'.$username.'/';
	//require_once 'php/database.php';
	//$result = database::query("DELETE fototag WHERE Username='albadrln' AND IDFoto='5'");
	//echo	$result;
	//print_r($result);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="style/footoo.css" />
<link rel="stylesheet" type="text/css" href="style/ftheader.css" />
<link rel="stylesheet" type="text/css" href="style/ftfooter.css" />
<link rel="stylesheet" type="text/css" href="style/ftcommoncontent.css" />
<link rel="icon" href="images/footoologomini.png" type="image/png" /> 
<script type="text/javascript" src="script/search.js"></script> 
<script type="text/javascript" src="script/visopt.js"></script> 
<script type="text/javascript" src="script/registrasi.js"></script>
<script type="text/javascript" src="script/datetimepicker.js"></script>
<script type="text/javascript" src="script/ajax.js"></script>
<script type="text/javascript" src="script/cookie.js"></script>
<script type="text/javascript">
	setInterval("headerChange();",1000);
	setInterval("NotifCheck();",1000);
</script>
<title>Footoo, Your Photo List</title>
</head>

<body>
    <div id="headerwrapper">
    	<div id="headerbgfx"></div>
        <div id="footooheader">
        	<div id="footoologo">
            	<a href="#"></a>
            </div>
			<div id="logprofpicarea">
            <?php require 'php/viewer/header.php'; ?>
			</div>
        </div>
        <div id="footoomenu">
            <ul>
                <li><a href="home.php" >Home</a></li>
				<li><a href="profile.php?<?php echo $_SESSION[username];?>">Profile</a></li>
				<li><a href="wall.php?<?php echo $_SESSION[username];?>">Wall</a>
				<li><a class="current" href="fts.php">Photos</a></li>
				<li><a href="message.php">Message</a></li>
            </ul>
        </div>
    </div>
    <div id="headerfixer"></div>
    <div id="headermirror">
    	<div id="notifbutton">
        	<a style="color:#CCC" href="javascript:void();" onclick="getAllNotif();show('notification');">You have 0 new notification(s).</a>
        </div>
    		<div id="notification">
            	<div class="x" onclick="hide('notification');"></div>
                Notification:<br/><br/>
                <div id="listnotif">
           			Empty.
            	</div><br/><br/>
                <a id="morenotif" href="javascript:void();" onclick="getNotif(1);">See More...</a>
            </div>
    	<div id="searchbox">
            <form action="search.php" method="post">
            	<select class="searchselect" name="tipe">
                	<option value="user">User</option>
                	<option value="photo">Photo</option>
                </select>
                <div class="searchbutton">
                    <input id="searchbutton" type="submit" value="" />
                </div>
                <div class="searchtext">
                <input id="searchtext" class="searchtext" type="text" name="searchtext" value="search" onfocus="filledTrue(this.id, 'search')" onblur="filledFalse(this.id, 'search')" />
            	</div>
            </form>		
        </div>
	</div>
    
    <div id="contentwrapper"><div id="contento">
    <?php 
		if ($login) require 'php/viewer/photo_list.php';
	?>
    </div></div>

    <div id="footerwrapper">
    	<div id="footer">
            <div id="footerleft"><br/>
            	ft, ft logoes are trademark of ft company. <br/>
            	Copyright 2010 by : <br/>
                13508011 - M. Albadr Lutan Nasution <br/>
                13508019 - Gregorius Ronny Kaluge <br/>
                13508099 - Alwi Alfiansyah Ramdan <br/>
            </div>
            <div id="footermiddle">
            	
            </div>
            <div id="footerright">
            	
            </div>
        </div>
    </div>
</body>
</html>
